home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / panda-star.swf / scripts / frame_3 / DoAction.as
Encoding:
Text File  |  2011-10-17  |  11.4 KB  |  346 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 527 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = 749 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 829)
  9.    {
  10.       set("\x01",eval("\x01") + 60);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 908)
  14.    {
  15.       set("\x01",eval("\x01") + 62);
  16.       if(function ┬º\x01\x02┬º()
  17.       {
  18.          return 527 % 511 * 5;
  19.       })
  20.       {
  21.          set("\x01",eval("\x01") - 26);
  22.       }
  23.    }
  24.    else if(eval("\x01") == 267)
  25.    {
  26.       set("\x01",eval("\x01") + 269);
  27.    }
  28.    else if(eval("\x01") == 536)
  29.    {
  30.       set("\x01",eval("\x01") + 372);
  31.       ┬º┬ºpush(true);
  32.    }
  33.    else
  34.    {
  35.       if(eval("\x01") == 775)
  36.       {
  37.          set("\x01",eval("\x01") - 55);
  38.          break;
  39.       }
  40.       if(eval("\x01") == 944)
  41.       {
  42.          set("\x01",eval("\x01") - 32);
  43.       }
  44.       else if(eval("\x01") == 490)
  45.       {
  46.          set("\x01",eval("\x01") + 369);
  47.          ┬º┬ºpush("\x0f");
  48.       }
  49.       else if(eval("\x01") == 428)
  50.       {
  51.          set("\x01",eval("\x01") - 72);
  52.          ┬º┬ºpush(!function ┬º\x01\x02┬º()
  53.          {
  54.             return 527 % 511 * 5;
  55.          });
  56.       }
  57.       else if(eval("\x01") == 3)
  58.       {
  59.          set("\x01",eval("\x01") + 487);
  60.          var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  61.          {
  62.             return 527 % 511 * 5;
  63.          };
  64.       }
  65.       else if(eval("\x01") == 720)
  66.       {
  67.          set("\x01",eval("\x01") - 184);
  68.       }
  69.       else if(eval("\x01") == 889)
  70.       {
  71.          set("\x01",eval("\x01") - 114);
  72.          if(function ┬º\x01\x02┬º()
  73.          {
  74.             return 527 % 511 * 5;
  75.          })
  76.          {
  77.             set("\x01",eval("\x01") - 55);
  78.          }
  79.       }
  80.       else
  81.       {
  82.          if(eval("\x01") == 970)
  83.          {
  84.             set("\x01",eval("\x01") - 26);
  85.             break;
  86.          }
  87.          if(eval("\x01") == 572)
  88.          {
  89.             set("\x01",eval("\x01") + 340);
  90.          }
  91.          else if(eval("\x01") == 912)
  92.          {
  93.             set("\x01",eval("\x01") - 909);
  94.             ┬º┬ºpush("\x0f");
  95.             ┬º┬ºpush(1);
  96.          }
  97.          else if(eval("\x01") == 859)
  98.          {
  99.             set("\x01",eval("\x01") - 431);
  100.             ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  101.             {
  102.                return 527 % 511 * 5;
  103.             }));
  104.          }
  105.          else if(eval("\x01") == 356)
  106.          {
  107.             set("\x01",eval("\x01") - 310);
  108.             if(function ┬º\x01\x02┬º()
  109.             {
  110.                return 527 % 511 * 5;
  111.             })
  112.             {
  113.                set("\x01",eval("\x01") + 80);
  114.             }
  115.          }
  116.          else
  117.          {
  118.             if(eval("\x01") != 46)
  119.             {
  120.                if(eval("\x01") == 126)
  121.                {
  122.                   set("\x01",eval("\x01") + 785);
  123.                   stop();
  124.                   black._y = 225;
  125.                   select = 1;
  126.                   dkey = false;
  127.                   ukey = false;
  128.                   ekey = false;
  129.                   skey = false;
  130.                   mkey = false;
  131.                   hit = false;
  132.                   board = false;
  133.                   iArray = new Array(startb,achieveb,scoreb,gamesb,credb);
  134.                   sArray = new Array();
  135.                   sCounter = 0;
  136.                   if(sd == undefined)
  137.                   {
  138.                      sd = 60;
  139.                   }
  140.                   leaves1.swapDepths(100);
  141.                   leaves2.swapDepths(101);
  142.                   logo.swapDepths(102);
  143.                   leaves1._x = 40;
  144.                   leaves2._x = 410;
  145.                   leaves1._y = leaves2._y = 387;
  146.                   i = 0;
  147.                   while(i < 4)
  148.                   {
  149.                      iArray[i].hit = false;
  150.                      i++;
  151.                   }
  152.                   if(s == undefined)
  153.                   {
  154.                      s = 1;
  155.                      ad = 1010;
  156.                      adArray = new Array();
  157.                      moveSound = new Sound();
  158.                      moveSound.attachSound("claves");
  159.                      tadaSound = new Sound(sound5);
  160.                      tadaSound.attachSound("tada");
  161.                      tadaSound.setVolume(300);
  162.                      gong = new Sound(sound6);
  163.                      gong.attachSound("gong");
  164.                      gong.setVolume(70);
  165.                      clickSound = new Sound(sound1);
  166.                      clickSound.attachSound("bell");
  167.                      clickSound.setVolume(40);
  168.                      music = new Sound(sound4);
  169.                      music.attachSound("music");
  170.                      music.setVolume(90);
  171.                      music.start(0,999);
  172.                   }
  173.                   _root.onEnterFrame = function()
  174.                   {
  175.                      AchievementFunction();
  176.                      StarAction();
  177.                      if(!board)
  178.                      {
  179.                         if(Key.isDown(40) || Key.isDown(83))
  180.                         {
  181.                            if(!dkey)
  182.                            {
  183.                               if(select < 5)
  184.                               {
  185.                                  select++;
  186.                                  moveSound.start();
  187.                               }
  188.                               dkey = true;
  189.                            }
  190.                         }
  191.                         else
  192.                         {
  193.                            dkey = false;
  194.                         }
  195.                         if(Key.isDown(38) || Key.isDown(87))
  196.                         {
  197.                            if(!ukey)
  198.                            {
  199.                               if(select > 1)
  200.                               {
  201.                                  select--;
  202.                                  moveSound.start();
  203.                               }
  204.                               ukey = true;
  205.                            }
  206.                         }
  207.                         else
  208.                         {
  209.                            ukey = false;
  210.                         }
  211.                         if(Key.isDown(13))
  212.                         {
  213.                            if(!ekey)
  214.                            {
  215.                               Select();
  216.                               ekey = true;
  217.                            }
  218.                         }
  219.                         else
  220.                         {
  221.                            ekey = false;
  222.                         }
  223.                         if(Key.isDown(32))
  224.                         {
  225.                            if(!skey)
  226.                            {
  227.                               Select();
  228.                               skey = true;
  229.                            }
  230.                         }
  231.                         else
  232.                         {
  233.                            skey = false;
  234.                         }
  235.                         hit = false;
  236.                         i = 0;
  237.                         while(i < 5)
  238.                         {
  239.                            t = iArray[i];
  240.                            if(t.hitTest(_xmouse,_ymouse,true))
  241.                            {
  242.                               hit = true;
  243.                               pie = false;
  244.                               if(!t.hit && select != i + 1)
  245.                               {
  246.                                  t.hit = true;
  247.                                  moveSound.start();
  248.                               }
  249.                               k = 0;
  250.                               while(k < 5)
  251.                               {
  252.                                  p = iArray[k];
  253.                                  if(k != i && p.hitTest(_xmouse,_ymouse,true))
  254.                                  {
  255.                                     pie = true;
  256.                                  }
  257.                                  k++;
  258.                               }
  259.                               select = i + 1;
  260.                            }
  261.                            else
  262.                            {
  263.                               t.hit = false;
  264.                            }
  265.                            if(select == i + 1)
  266.                            {
  267.                               if(t._xscale < 125)
  268.                               {
  269.                                  t._xscale += (130 - t._xscale) / 5;
  270.                               }
  271.                               t._yscale = t._xscale;
  272.                            }
  273.                            else
  274.                            {
  275.                               if(t._xscale > 100)
  276.                               {
  277.                                  t._xscale += (95 - t._xscale) / 5;
  278.                               }
  279.                               else
  280.                               {
  281.                                  t._xscale = 100;
  282.                               }
  283.                               t._yscale = t._xscale;
  284.                            }
  285.                            t._alpha = 75 + (t._xscale - 100);
  286.                            i++;
  287.                         }
  288.                         pandas._y = iArray[select - 1]._y;
  289.                         if(Key.isDown(77))
  290.                         {
  291.                            if(!mkey)
  292.                            {
  293.                               mkey = true;
  294.                               if(moveSound.getVolume() != 0)
  295.                               {
  296.                                  moveSound.setVolume(0);
  297.                               }
  298.                               else
  299.                               {
  300.                                  moveSound.setVolume(100);
  301.                               }
  302.                            }
  303.                         }
  304.                         else
  305.                         {
  306.                            mkey = false;
  307.                         }
  308.                      }
  309.                   };
  310.                   _root.onMouseDown = function()
  311.                   {
  312.                      if(hit && !board)
  313.                      {
  314.                         Select();
  315.                      }
  316.                   };
  317.                   gameData = SharedObject.getLocal("PandaStarData16");
  318.                   if(gameData.data.played == undefined)
  319.                   {
  320.                      gameData.data.played = true;
  321.                      aArray = new Array();
  322.                      i = 0;
  323.                      while(i < 30)
  324.                      {
  325.                         aArray.push(false);
  326.                         i++;
  327.                      }
  328.                      gameData.data.a = aArray;
  329.                      gameData.data.extras = new Array(0,0,0,0,0,0,0,0);
  330.                   }
  331.                   gd = gameData.data;
  332.                   aArray = new Array("Baby panda","Young panda","Adult panda","Skilled panda","Master panda","Boost owner","Boost conserver","Boost horder","Boost lover","Boosts are for noobs","What\'s a boost?","Screen jumper","Switcharoo","Teleporter","Teleportationist","Master magician","Hit the roof","Who done it?","Where the games at?","Panda hater","Stupid panda","Suicidal panda","Close call","Sky diver","Falling star","Endangered species","Hit the deck","Neat game","Cool game","I love this game!");
  333.                   break;
  334.                }
  335.                if(eval("\x01") == 911)
  336.                {
  337.                   set("\x01",eval("\x01") - 911);
  338.                }
  339.                break;
  340.             }
  341.             set("\x01",eval("\x01") + 80);
  342.          }
  343.       }
  344.    }
  345. }
  346.